package com.ocom.payconfig.controller;


import com.alibaba.fastjson.JSON;
import com.google.gson.Gson;
import com.ocom.payconfig.po.Company;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


@RestController
public class PayCenterCompanyController {

	@GetMapping("/test789")
	public String tegg(){
		Company company=new Company();
		company.setCompanyName("44uujjj");
		company.setUserName("hhhh");
		company.setPassword("123456");
		company.setPayChannel("111111");
		company.setIsEverySet(true);
		company.setLocked(false);
		company.setContactName("5666");
		company.setContactAddress("454545");
		company.setContactNumber("333");
		Map<String,Object> map=new HashMap<>();
		map.put("company", JSON.toJSONString(company));
		return new Gson().toJson(map);
	}
}
